﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
using Utilities.Validation;
using System.Text;
namespace Home.WebUI.Areas.Example.Controllers
{
    public class YanZhengController : Controller
    {
        //
        // GET: /Example/YanZheng/

        public ActionResult Index(Test1 model)
        {
            model.CheckAll(Request);
            return View();
        }

    }

    

    public class Test1:UniValidate
    {
       
        /// <summary>
        /// 初始化
        /// </summary>
        public Test1()
        {
            InitName(()=>UserName).NotEmpty().Email();
            ValidEnd();
            
        }
        /// <summary>
        /// 用户名
        /// </summary>
        public virtual string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 注册Ip
        /// </summary>
        public string Ip { get; set; }
        /// <summary>
        /// Email
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
    }


}
